package com.xc.ezplan.auth.feign;

import com.xc.ezplan.core.base.EzResult;
import com.xc.ezplan.core.constants.ServiceNameConstant;
import com.xc.ezplan.core.dto.AdminUserDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author : xc
 * @date : 2022/11/23 15:05
 * @description : 类默认描述
 */
@Component
@FeignClient(ServiceNameConstant.ADMIN)
public interface AdminUserFeignService {
	/**
	 * 通过clientId 查询客户端信息
	 *
	 * @param username 用户名
	 * @return EzResult
	 */
	@GetMapping("/user/username")
	EzResult<AdminUserDTO> queryUserByUserName(@RequestParam(value = "username", required = false) String username);
}
